<template lang="pug">
span {{text}}
</template>
<script>
export default {
  name: 'DateText',
  props: {
    value: {
      type: String,
      default: Date.now
    }
  },
  computed: {
    text () {
      let d = new Date(this.value)
      return d.toLocaleDateString()
    }
  }
}
</script>

